#!/bin/sh

# This script inspects the explicit word list produced by the script
# rebuild and dumps the entries that could be treated as implicit
# ones according to the specified rule number into the file
# lexicon.dump.

exec <explicit.list >lexicon.dump

while read key desc; do
    if ../src/lexholder -b $key lexicon | grep -q "^$1[^0-9]"
    then echo $key $desc
    fi
done

exit 0
